package day0219;

public class F0 {
    //main方法：让本文件能运行
    public static void main(String[] args) {
        //数据类型 变量名=数值;
        //byte short int long   float double  char boolean   String
        byte b1=1;         //[-128, 127]
        short s1=-32768;   //[-32768, 32767]
        int i1=-2147483648; //[-2147483648, 2147483647]
        long g1= Long.MAX_VALUE;//[-9223372036854775809L,9223372036854775807L]

        float f1=Float.MIN_VALUE;
        float f2=Float.MAX_VALUE;
        float f3=4.6F;
        System.out.println(f1);
        //注意：float数据必须加F

        double d1;
        d1=5.2;
        System.out.println(d1);//5.2

        char c1='个';
        char c2='A';
        char c3=';';
        char c4='\'';  //转义符
        System.out.println(c4);  //  '

        boolean bo1=    c1 == 'A';
        System.out.println(bo1);
    }
}
